export const  getIconDate=function(type){
    const date=new Date()
    switch(type){
        case "day":
            return date.getDate().toString().substr(-2).padStart(2,0);
          
        case "month":
            return ((date.getMonth()+1).toString().substr(-2)).padStart(2,0);
          
        case "year":
            return date.getFullYear().toString().substr(-2)
          
    }
}